/**
 * <copyright>
 * </copyright>
 *

 */
package net.maylander.bfcpublog.bfwb.brainfuckLanguage.impl;

import net.maylander.bfcpublog.bfwb.brainfuckLanguage.AbstractMacroDef;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.AbstractParamDef;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.AbstractStmt;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.BfValue;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.BlockStmt;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.BrainfuckLanguageFactory;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.BrainfuckLanguagePackage;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.BrainfuckProgram;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.LoopStmt;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.MacroCall;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.MacroDef;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.ParamDef;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.Region;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.SignedInt;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.SimpleStmt;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.SimpleStmtKind;
import net.maylander.bfcpublog.bfwb.brainfuckLanguage.SymbolDef;

import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;

import org.eclipse.emf.ecore.impl.EPackageImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Package</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class BrainfuckLanguagePackageImpl extends EPackageImpl implements BrainfuckLanguagePackage
{
  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private EClass brainfuckProgramEClass = null;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private EClass symbolDefEClass = null;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private EClass abstractMacroDefEClass = null;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private EClass regionEClass = null;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private EClass macroDefEClass = null;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private EClass paramDefEClass = null;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private EClass abstractStmtEClass = null;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private EClass simpleStmtEClass = null;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private EClass loopStmtEClass = null;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private EClass macroCallEClass = null;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private EClass bfValueEClass = null;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private EClass signedIntEClass = null;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private EClass abstractParamDefEClass = null;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private EClass blockStmtEClass = null;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private EEnum simpleStmtKindEEnum = null;

  /**
   * Creates an instance of the model <b>Package</b>, registered with
   * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
   * package URI value.
   * <p>Note: the correct way to create the package is via the static
   * factory method {@link #init init()}, which also performs
   * initialization of the package, or returns the registered package,
   * if one already exists.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see org.eclipse.emf.ecore.EPackage.Registry
   * @see net.maylander.bfcpublog.bfwb.brainfuckLanguage.BrainfuckLanguagePackage#eNS_URI
   * @see #init()
   * @generated
   */
  private BrainfuckLanguagePackageImpl()
  {
    super(eNS_URI, BrainfuckLanguageFactory.eINSTANCE);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private static boolean isInited = false;

  /**
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
   * 
   * <p>This method is used to initialize {@link BrainfuckLanguagePackage#eINSTANCE} when that field is accessed.
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #eNS_URI
   * @see #createPackageContents()
   * @see #initializePackageContents()
   * @generated
   */
  public static BrainfuckLanguagePackage init()
  {
    if (isInited) return (BrainfuckLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(BrainfuckLanguagePackage.eNS_URI);

    // Obtain or create and register package
    BrainfuckLanguagePackageImpl theBrainfuckLanguagePackage = (BrainfuckLanguagePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof BrainfuckLanguagePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new BrainfuckLanguagePackageImpl());

    isInited = true;

    // Create package meta-data objects
    theBrainfuckLanguagePackage.createPackageContents();

    // Initialize created meta-data
    theBrainfuckLanguagePackage.initializePackageContents();

    // Mark meta-data to indicate it can't be changed
    theBrainfuckLanguagePackage.freeze();

  
    // Update the registry and return the package
    EPackage.Registry.INSTANCE.put(BrainfuckLanguagePackage.eNS_URI, theBrainfuckLanguagePackage);
    return theBrainfuckLanguagePackage;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EClass getBrainfuckProgram()
  {
    return brainfuckProgramEClass;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EAttribute getBrainfuckProgram_Name()
  {
    return (EAttribute)brainfuckProgramEClass.getEStructuralFeatures().get(0);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EReference getBrainfuckProgram_Symbols()
  {
    return (EReference)brainfuckProgramEClass.getEStructuralFeatures().get(1);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EReference getBrainfuckProgram_Macros()
  {
    return (EReference)brainfuckProgramEClass.getEStructuralFeatures().get(2);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EReference getBrainfuckProgram_Stmts()
  {
    return (EReference)brainfuckProgramEClass.getEStructuralFeatures().get(3);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EClass getSymbolDef()
  {
    return symbolDefEClass;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EReference getSymbolDef_Value()
  {
    return (EReference)symbolDefEClass.getEStructuralFeatures().get(0);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EClass getAbstractMacroDef()
  {
    return abstractMacroDefEClass;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EAttribute getAbstractMacroDef_Name()
  {
    return (EAttribute)abstractMacroDefEClass.getEStructuralFeatures().get(0);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EClass getRegion()
  {
    return regionEClass;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EReference getRegion_Elements()
  {
    return (EReference)regionEClass.getEStructuralFeatures().get(0);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EClass getMacroDef()
  {
    return macroDefEClass;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EReference getMacroDef_Params()
  {
    return (EReference)macroDefEClass.getEStructuralFeatures().get(0);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EReference getMacroDef_Stmts()
  {
    return (EReference)macroDefEClass.getEStructuralFeatures().get(1);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EClass getParamDef()
  {
    return paramDefEClass;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EClass getAbstractStmt()
  {
    return abstractStmtEClass;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EReference getAbstractStmt_Repeat()
  {
    return (EReference)abstractStmtEClass.getEStructuralFeatures().get(0);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EClass getSimpleStmt()
  {
    return simpleStmtEClass;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EAttribute getSimpleStmt_Kind()
  {
    return (EAttribute)simpleStmtEClass.getEStructuralFeatures().get(0);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EClass getLoopStmt()
  {
    return loopStmtEClass;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EReference getLoopStmt_Stmts()
  {
    return (EReference)loopStmtEClass.getEStructuralFeatures().get(0);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EClass getMacroCall()
  {
    return macroCallEClass;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EReference getMacroCall_Macro()
  {
    return (EReference)macroCallEClass.getEStructuralFeatures().get(0);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EReference getMacroCall_Actuals()
  {
    return (EReference)macroCallEClass.getEStructuralFeatures().get(1);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EClass getBfValue()
  {
    return bfValueEClass;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EReference getBfValue_Val()
  {
    return (EReference)bfValueEClass.getEStructuralFeatures().get(0);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EReference getBfValue_Ref()
  {
    return (EReference)bfValueEClass.getEStructuralFeatures().get(1);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EClass getSignedInt()
  {
    return signedIntEClass;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EAttribute getSignedInt_Sign()
  {
    return (EAttribute)signedIntEClass.getEStructuralFeatures().get(0);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EAttribute getSignedInt_Value()
  {
    return (EAttribute)signedIntEClass.getEStructuralFeatures().get(1);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EClass getAbstractParamDef()
  {
    return abstractParamDefEClass;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EAttribute getAbstractParamDef_Name()
  {
    return (EAttribute)abstractParamDefEClass.getEStructuralFeatures().get(0);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EClass getBlockStmt()
  {
    return blockStmtEClass;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EReference getBlockStmt_Stmts()
  {
    return (EReference)blockStmtEClass.getEStructuralFeatures().get(0);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EEnum getSimpleStmtKind()
  {
    return simpleStmtKindEEnum;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public BrainfuckLanguageFactory getBrainfuckLanguageFactory()
  {
    return (BrainfuckLanguageFactory)getEFactoryInstance();
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private boolean isCreated = false;

  /**
   * Creates the meta-model objects for the package.  This method is
   * guarded to have no affect on any invocation but its first.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void createPackageContents()
  {
    if (isCreated) return;
    isCreated = true;

    // Create classes and their features
    brainfuckProgramEClass = createEClass(BRAINFUCK_PROGRAM);
    createEAttribute(brainfuckProgramEClass, BRAINFUCK_PROGRAM__NAME);
    createEReference(brainfuckProgramEClass, BRAINFUCK_PROGRAM__SYMBOLS);
    createEReference(brainfuckProgramEClass, BRAINFUCK_PROGRAM__MACROS);
    createEReference(brainfuckProgramEClass, BRAINFUCK_PROGRAM__STMTS);

    symbolDefEClass = createEClass(SYMBOL_DEF);
    createEReference(symbolDefEClass, SYMBOL_DEF__VALUE);

    abstractMacroDefEClass = createEClass(ABSTRACT_MACRO_DEF);
    createEAttribute(abstractMacroDefEClass, ABSTRACT_MACRO_DEF__NAME);

    regionEClass = createEClass(REGION);
    createEReference(regionEClass, REGION__ELEMENTS);

    macroDefEClass = createEClass(MACRO_DEF);
    createEReference(macroDefEClass, MACRO_DEF__PARAMS);
    createEReference(macroDefEClass, MACRO_DEF__STMTS);

    paramDefEClass = createEClass(PARAM_DEF);

    abstractStmtEClass = createEClass(ABSTRACT_STMT);
    createEReference(abstractStmtEClass, ABSTRACT_STMT__REPEAT);

    simpleStmtEClass = createEClass(SIMPLE_STMT);
    createEAttribute(simpleStmtEClass, SIMPLE_STMT__KIND);

    loopStmtEClass = createEClass(LOOP_STMT);
    createEReference(loopStmtEClass, LOOP_STMT__STMTS);

    macroCallEClass = createEClass(MACRO_CALL);
    createEReference(macroCallEClass, MACRO_CALL__MACRO);
    createEReference(macroCallEClass, MACRO_CALL__ACTUALS);

    bfValueEClass = createEClass(BF_VALUE);
    createEReference(bfValueEClass, BF_VALUE__VAL);
    createEReference(bfValueEClass, BF_VALUE__REF);

    signedIntEClass = createEClass(SIGNED_INT);
    createEAttribute(signedIntEClass, SIGNED_INT__SIGN);
    createEAttribute(signedIntEClass, SIGNED_INT__VALUE);

    abstractParamDefEClass = createEClass(ABSTRACT_PARAM_DEF);
    createEAttribute(abstractParamDefEClass, ABSTRACT_PARAM_DEF__NAME);

    blockStmtEClass = createEClass(BLOCK_STMT);
    createEReference(blockStmtEClass, BLOCK_STMT__STMTS);

    // Create enums
    simpleStmtKindEEnum = createEEnum(SIMPLE_STMT_KIND);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private boolean isInitialized = false;

  /**
   * Complete the initialization of the package and its meta-model.  This
   * method is guarded to have no affect on any invocation but its first.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void initializePackageContents()
  {
    if (isInitialized) return;
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    symbolDefEClass.getESuperTypes().add(this.getAbstractParamDef());
    regionEClass.getESuperTypes().add(this.getAbstractMacroDef());
    macroDefEClass.getESuperTypes().add(this.getAbstractMacroDef());
    paramDefEClass.getESuperTypes().add(this.getAbstractParamDef());
    simpleStmtEClass.getESuperTypes().add(this.getAbstractStmt());
    loopStmtEClass.getESuperTypes().add(this.getAbstractStmt());
    macroCallEClass.getESuperTypes().add(this.getAbstractStmt());
    blockStmtEClass.getESuperTypes().add(this.getAbstractStmt());

    // Initialize classes and features; add operations and parameters
    initEClass(brainfuckProgramEClass, BrainfuckProgram.class, "BrainfuckProgram", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getBrainfuckProgram_Name(), ecorePackage.getEString(), "name", null, 0, 1, BrainfuckProgram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getBrainfuckProgram_Symbols(), this.getSymbolDef(), null, "symbols", null, 0, -1, BrainfuckProgram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getBrainfuckProgram_Macros(), this.getAbstractMacroDef(), null, "macros", null, 0, -1, BrainfuckProgram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getBrainfuckProgram_Stmts(), this.getAbstractStmt(), null, "stmts", null, 0, -1, BrainfuckProgram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(symbolDefEClass, SymbolDef.class, "SymbolDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getSymbolDef_Value(), this.getSignedInt(), null, "value", null, 0, 1, SymbolDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(abstractMacroDefEClass, AbstractMacroDef.class, "AbstractMacroDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getAbstractMacroDef_Name(), ecorePackage.getEString(), "name", null, 0, 1, AbstractMacroDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(regionEClass, Region.class, "Region", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getRegion_Elements(), this.getAbstractMacroDef(), null, "elements", null, 0, -1, Region.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(macroDefEClass, MacroDef.class, "MacroDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getMacroDef_Params(), this.getParamDef(), null, "params", null, 0, -1, MacroDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getMacroDef_Stmts(), this.getAbstractStmt(), null, "stmts", null, 0, -1, MacroDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(paramDefEClass, ParamDef.class, "ParamDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

    initEClass(abstractStmtEClass, AbstractStmt.class, "AbstractStmt", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getAbstractStmt_Repeat(), this.getBfValue(), null, "repeat", null, 0, 1, AbstractStmt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(simpleStmtEClass, SimpleStmt.class, "SimpleStmt", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getSimpleStmt_Kind(), this.getSimpleStmtKind(), "kind", null, 0, 1, SimpleStmt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(loopStmtEClass, LoopStmt.class, "LoopStmt", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getLoopStmt_Stmts(), this.getAbstractStmt(), null, "stmts", null, 0, -1, LoopStmt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(macroCallEClass, MacroCall.class, "MacroCall", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getMacroCall_Macro(), this.getMacroDef(), null, "macro", null, 0, 1, MacroCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getMacroCall_Actuals(), this.getBfValue(), null, "actuals", null, 0, -1, MacroCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(bfValueEClass, BfValue.class, "BfValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getBfValue_Val(), this.getSignedInt(), null, "val", null, 0, 1, BfValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getBfValue_Ref(), this.getAbstractParamDef(), null, "ref", null, 0, 1, BfValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(signedIntEClass, SignedInt.class, "SignedInt", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getSignedInt_Sign(), ecorePackage.getEString(), "sign", null, 0, 1, SignedInt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getSignedInt_Value(), ecorePackage.getEInt(), "value", null, 0, 1, SignedInt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(abstractParamDefEClass, AbstractParamDef.class, "AbstractParamDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getAbstractParamDef_Name(), ecorePackage.getEString(), "name", null, 0, 1, AbstractParamDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(blockStmtEClass, BlockStmt.class, "BlockStmt", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getBlockStmt_Stmts(), this.getAbstractStmt(), null, "stmts", null, 0, -1, BlockStmt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    // Initialize enums and add enum literals
    initEEnum(simpleStmtKindEEnum, SimpleStmtKind.class, "SimpleStmtKind");
    addEEnumLiteral(simpleStmtKindEEnum, SimpleStmtKind.PLUS);
    addEEnumLiteral(simpleStmtKindEEnum, SimpleStmtKind.MINUS);
    addEEnumLiteral(simpleStmtKindEEnum, SimpleStmtKind.LEFT);
    addEEnumLiteral(simpleStmtKindEEnum, SimpleStmtKind.RIGHT);
    addEEnumLiteral(simpleStmtKindEEnum, SimpleStmtKind.INPUT);
    addEEnumLiteral(simpleStmtKindEEnum, SimpleStmtKind.OUTPUT);

    // Create resource
    createResource(eNS_URI);
  }

} //BrainfuckLanguagePackageImpl
